﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using TuringVM.Core;

namespace TuringVM.Esoteric.Commands
{
    class IncCommand : CommandBase
    {
        public override byte Code
        {
            get { return 3; }
        }

        public override string Name
        {
            get { return "Inc"; }
        }

        public override byte Execute(Tape code, Tape data)
        {
            data.Value = (byte)((data.Value + 1) % byte.MaxValue);
            return 0;
        }
    }
}
